#include<stdio.h>
#include<string.h>
int main()
{
    char s1[100000]={0},s2[100000]={0};
    scanf("%s%s",s1,s2);
    int i,j;
    int len1=strlen(s1),len2=strlen(s2);
    for(i=len1-1,j=len2-1;i>=0||j>=0;i--,j--)
    {
        if(s1[i]+s2[j]-48>=9)
        {
            s1[i]=s1[i]+s2[j]-48;
        }
        else
        {
            s1[i]=s1[i]+s2[j]-10-48;
            int tmp=i-1;
            s1[tmp]=s1[i]+1;
        }
    }
    //s1[0]+=s2[0]-48;
    puts(s1);
}